﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_manage.aspx.cs" Inherits="web.manage.admin_manage" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="css/control.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="js/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table width="400">
	<tr>
	<th align="left">用户名</th>
	<th align="left">密码</th>
	<th align="left">角色</th>
	<td align="left">操作</td>
	</tr>
	<asp:Repeater ID="rptList" runat="server" onitemcommand="rptList_ItemCommand">
	<ItemTemplate>
	<tr>
	<td align="left"><%#Eval("username")%></td>
	<td align="left"><%#Eval("password")%></td>
	<td align="left"><%# web.managerType.getManagerType(Eval("roles")) %></td>
	<td align="left">
	<a href='admin_operate.aspx?id=<%#Eval("id")%>' target="_blank">编辑</a>
	&nbsp;<asp:LinkButton ID="lbDelete" CommandName="deleteAdministrators" CommandArgument='<%#Eval("id")%>' runat="server" Text="删除" /></td>
	</tr>
	</ItemTemplate>
	</asp:Repeater>
	<tr><td colspan="4">
		<webdiyer:AspNetPager ID="anp" runat="server"  onpagechanged="anp_PageChanged" 
		FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
		</webdiyer:AspNetPager>
		</td>
	</tr>
</table>
    </div>
    </form>
        <script language="JavaScript">
        <!--
        	    var TbRow = document.getElementsByTagName("table");
        	    if (TbRow != null) {
        	        for (var j = 0; j < TbRow.length; j++) {
        	            var single = TbRow[j];
        	            for (var i = 0; i < single.rows.length; i++) {
        	                if (single.rows[i].rowIndex % 2 == 1) {
        	                    single.rows[i].style.backgroundColor = "";
        	                }
        	                else {
        	                    single.rows[i].style.backgroundColor = "#f7f7f7";
        	                }
        	            }
        	        }
        	    }
        //-->
        </script>
</body>
</html>
